﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace mesRUpload.csv
{
    public class RadProcessBar 
    {

        //private BackgroundWorker backgroundWorker1; //ProcessForm 窗体事件(进度条窗体) 

        //public RadProcessBar(BackgroundWorker backgroundWorker1)
        //{
        //    InitializeComponent();

        //    this.backgroundWorker1 = backgroundWorker1;
        //    this.backgroundWorker1.ProgressChanged += new ProgressChangedEventHandler(backgroundWorker1_ProgressChanged);
        //    this.backgroundWorker1.RunWorkerCompleted += new RunWorkerCompletedEventHandler(backgroundWorker1_RunWorkerCompleted);
        //}

        //void backgroundWorker1_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
        //{
        //    this.Close();//执行完之后，直接关闭页面
        //}

        //void backgroundWorker1_ProgressChanged(object sender, ProgressChangedEventArgs e)
        //{
        //    this.progressBar1.Value = e.ProgressPercentage;
        //}

        //private void btn_cancel_Click(object sender, EventArgs e)
        //{
        //    this.backgroundWorker1.CancelAsync();
        //    this.btn_cancel.Enabled = false;
        //    this.Close();
        //}
    }
}
